import { request } from './request'
export function requestRightsData(params){
    return request({
        ...params,
        method: 'get'
    })
}
export function requestRolesData(params){
    return request({
        ...params,
        url: 'roles',
        method: 'get'
    })
}
//删除指定权限的网络请求
export function requestDeletRoleRight(params){
    return request({
        ...params,
        method: 'delete'
    })
}
//分配权限的网络请求函数
export function requestAssginRight(params){
    return request({
        ...params,
        method:'get',
        url:'rights/tree'
    })
}
export function requestSetAssign(params){
    return request({
        ...params,
        method:'post'
    })
}